@extends('admin.main')
@section('content')
    <div class="admin-content">
        <div class="am-cf am-padding am-padding-bottom-0">
            <div class="am-fl am-cf">
                <strong class="am-text-primary am-text-lg">后台设置</strong>
                /
                <small>企业信息</small>
            </div>
        </div>
        <hr>
        <div class="am-g">
            @include('admin.layouts.adminInfo')
            <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
                <dd style="padding:5px 10px;padding-top:10px;
                    border:1px solid #f0f0f0;box-shadow:0 0 10px #e0e0e0;
                    background:#fefefe;
                    position:fixed;top:150px;right:50px;">
                    <dl>
                        <a href="#legal">法人证件</a>
                    </dl>
                    <dl>
                        <a href="#com">企业证件</a>
                    </dl>
                    <dl>
                        <a href="#product">企业产品</a>
                    </dl>
                    <dl>
                        <a href="#style">产品风格</a>
                    </dl>
                    <dl>
                        <a href="#proType">产品种类</a>
                    </dl>
                    <dl>
                        <a href="#design">款式数量</a>
                    </dl>
                    <dl>
                        <a href="#equip">工厂设备</a>
                    </dl>
                    <dl>
                        <a href="#yield">产量产能</a>
                    </dl>
                    <dl>
                        <a href="#facEnv">工厂环境</a>
                    </dl>
                    <dl>
                        <a href="#comEnv">公司环境</a>
                    </dl>
                </dd>
                <table class="am-table am-table-striped
                    am-table-hover table-main">
                    <tbody id="tbody-alert">
                    {{--法人证件--}}
                    <tr>
                        <td colspan="2" id="legal">
                            <h2>法人证件：</h2>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            形象照：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyLegalFile(1);">新增</a>
                        </td>
                        <td width="500">
                            @if(isset($legals['photos']) && $legals['photos'])
                            @foreach($legals['photos'] as $photo)
                                @if(file_exists(ltrim($photo,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$photo}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            身份证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyLegalFile(2);">新增</a>
                        </td>
                        <td>
                            @if(isset($legals['idcards']) && $legals['idcards'])
                            @foreach($legals['idcards'] as $idcard)
                                @if(file_exists(ltrim($idcard,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$idcard}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            毕业证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyLegalFile(3);">新增</a>
                        </td>
                        <td>
                            @if(isset($legals['graduates']) && $legals['graduates'])
                            @foreach($legals['graduates'] as $graduate)
                                @if(file_exists(ltrim($graduate,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$graduate}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            荣誉证书：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyLegalFile(4);">新增</a>
                        </td>
                        <td>
                            @if(isset($legals['honors']) && $legals['honors'])
                            @foreach($legals['honors'] as $honor)
                                @if(file_exists(ltrim($honor,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$honor}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            结婚证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyLegalFile(5);">新增</a>
                        </td>
                        <td>
                            @if(isset($legals['marrys']) && $legals['marrys'])
                            @foreach($legals['marrys'] as $marry)
                                @if(file_exists(ltrim($marry,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$marry}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            驾驶证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyLegalFile(6);">新增</a>
                        </td>
                        <td>
                            @if(isset($legals['drives']) && $legals['drives'])
                            @foreach($legals['drives'] as $drive)
                                @if(file_exists(ltrim($drive,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$drive}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--企业证件--}}
                    <tr>
                        <td colspan="2" id="com">
                            <h2>企业证件：</h2>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            组织机构代码证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComFile(1)">新增</a>
                        </td>
                        <td>
                            @if(isset($coms['zzjgdmzs']) && $coms['zzjgdmzs'])
                            @foreach($coms['zzjgdmzs'] as $zzjgdmz)
                                @if(file_exists(ltrim($zzjgdmz,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$zzjgdmz}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            营业执照：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComFile(2)">新增</a>
                        </td>
                        <td>
                            @if(isset($coms['yyzzs']) && $coms['yyzzs'])
                            @foreach($coms['yyzzs'] as $yyzz)
                                @if(file_exists(ltrim($yyzz,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$yyzz}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            税务登记证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComFile(3)">新增</a>
                        </td>
                        <td>
                            @if(isset($coms['swdjzs']) && $coms['swdjzs'])
                            @foreach($coms['swdjzs'] as $swdjz)
                                @if(file_exists(ltrim($swdjz,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$swdjz}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            租赁合同：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComFile(4)">新增</a>
                        </td>
                        <td>
                            @if(isset($coms['rents']) && $coms['rents'])
                            @foreach($coms['rents'] as $rent)
                                @if(file_exists(ltrim($rent,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$rent}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            各类许可证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComFile(5)">新增</a>
                        </td>
                        <td>
                            @if(isset($coms['licencess']) && $coms['licencess'])
                            @foreach($coms['licencess'] as $licence)
                                @if(file_exists(ltrim($licence,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$licence}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            荣誉证书：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComFile(6)">新增</a>
                        </td>
                        <td>
                            @if(isset($coms['honorss']) && $coms['honorss'])
                            @foreach($coms['honorss'] as $honor)
                                @if(file_exists(ltrim($honor,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$honor}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            房产证：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComFile(7)">新增</a>
                        </td>
                        <td>
                            @if(isset($coms['houses']) && $coms['houses'])
                            @foreach($coms['houses'] as $house)
                                @if(file_exists(ltrim($house,'/')))
                            <div style="margin:5px;float:left;">
                                <img src="{{$house}}" height="100">
                            </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--企业产品--}}
                    <tr>
                        <td colspan="2" id="product">
                            <h2>企业产品：
                                <a href="javascript:;"
                                   onclick="modifyProduct()">编辑</a>
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            <div style="max-height:400px;overflow:auto;">
                                <table class="am-table am-table-striped
                                    am-table-hover table-main"
                                       style="background:#dddddd;"
                                    >
                                    <tr>
                                        <td>针织/梭织/箱包类</td>
                                        <td>品类</td>
                                        <td>男装/女装/童装</td>
                                        {{--<td>是否选择</td>--}}
                                    </tr>
                                    @if($products)
                                    @foreach($products as $key => $product)
                                        @if($product && $product['isExit'])
                                        <tr style="margin:10px;">
                                        <td>{{$product['typeName']}}</td>
                                        <td>{{$product['cateName']}}</td>
                                        <td>{{$product['proName']}}</td>
                                        {{--<td>{{$product['isExit']?'已选择':'未选择'}}</td>--}}
                                        </tr>
                                        @endif
                                    @endforeach
                                @endif
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--产品风格--}}
                    <tr>
                        <td colspan="2" id="style">
                            <h2>
                                产品风格：
                                <a href="javascript:;"
                                   onclick="modifyStyle()">编辑</a>
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            @if($styles)
                            @foreach($styles as $style)
                                @if($style['isExist'])
                                {{$style['name']}}
                                &nbsp; &nbsp;
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--产品种类--}}
                    <tr>
                        <td colspan="2" id="proType">
                            <h2>
                                产品种类：
                                <a href="javascript:;"
                                   onclick="modifyProType()">编辑</a>
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            <div style="max-height:400px;overflow:auto;">
                                <table class="am-table am-table-striped
                        am-table-hover table-main" style="background:#dddddd;">
                                    <tr>
                                        <td>分类</td>
                                        <td>名称</td>
                                        <td>男装</td>
                                        <td>女装</td>
                                        <td>童装</td>
                                    </tr>
                                    @if($proTypes)
                                        @foreach($proTypes as $proType)
                                        <tr style="margin:10px;">
                                            <td>{{$proType['cate']}}</td>
                                            <td>{{$proType['name']}}</td>
                                            <td>{{$proType['male']}}</td>
                                            <td>{{$proType['female']}}</td>
                                            <td>{{$proType['child']}}</td>
                                        </tr>
                                        @endforeach
                                    @endif
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--款式数量--}}
                    <tr>
                        <td colspan="2" id="design">
                            <h2>
                                款式数量：
                                <a href="javascript:;"
                                   onclick="modifyDesign()">编辑</a>
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            <div style="max-height:400px;overflow:auto;">
                                <table class="am-table am-table-striped
                                    am-table-hover table-main"
                                       style="background:#dddddd;"
                                    >
                                    <tr>
                                        <td>名称</td>
                                        <td>数量</td>
                                    </tr>
                                    @if($designs)
                                        @foreach($designs as $design)
                                        <tr style="margin:10px;">
                                            <td>{{$design['name']}}</td>
                                            <td>{{$design['num']}}</td>
                                        </tr>
                                        @endforeach
                                    @endif
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--工厂设备--}}
                    <tr>
                        <td colspan="2" id="equip">
                            <h2>
                                工厂设备：
                                <a href="javascript:;"
                                   onclick="modifyEquip()">编辑</a>
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            <div style="max-height:400px;overflow:auto;">
                                <table class="am-table am-table-striped
                                    am-table-hover table-main"
                                       style="background:#dddddd;"
                                    >
                                    <tr>
                                        <td>设备类型</td>
                                        <td>品牌</td>
                                        <td>年限</td>
                                        <td>图片</td>
                                        <td>数量</td>
                                    </tr>
                                    @if($equips)
                                        @foreach($equips as $equip)
                                        <tr style="margin:10px;">
                                            <td>{{$equip[0]}}</td>
                                            <td>{{$equip[1]}}</td>
                                            <td>{{$equip[2]}}</td>
                                            <td>{{$equip[3]}}</td>
                                            <td>{{$equip[4]}}</td>
                                        </tr>
                                        @endforeach
                                    @endif
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--产量产能--部门人数--}}
                    <tr>
                        <td colspan="2" id="yield">
                            <h2>
                                产量产能：
                                <a href="javascript:;"
                                   onclick="modifyYield()">编辑</a>
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b>部门人数：</b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            <div style="max-height:400px;overflow:auto;">
                                <table class="am-table am-table-striped
                                    am-table-hover table-main"
                                       style="background:#dddddd;"
                                    >
                                    <tr>
                                        <td>部门</td>
                                        <td>人数</td>
                                    </tr>
                                    @if($departs)
                                        @foreach($departs as $depart)
                                        <tr style="margin:10px;">
                                            <td>{{$depart['key']}}</td>
                                            <td>{{$depart['num']}}</td>
                                        </tr>
                                        @endforeach
                                    @endif
                                </table>
                            </div>
                        </td>
                    </tr>
                    {{--产量产能--日产量--}}
                    <tr>
                        <td colspan="2">
                            <b>日产量：</b>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">日产量：</td>
                        <td width="500">
                            @if($dayOutPuts)
                                {{$dayOutPuts[0]?$dayOutPuts[0]:0}}
                                至
                                {{$dayOutPuts[1]?$dayOutPuts[1]:0}}
                            @endif
                        </td>
                    </tr>
                    {{--产量产能--质量要求--}}
                    <tr>
                        <td colspan="2">
                            <b>质量要求：</b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            <div style="max-height:400px;overflow:auto;">
                                <table class="am-table am-table-striped
                                    am-table-hover table-main"
                                       style="background:#dddddd;"
                                    >
                                    <tr>
                                        <td>产品类型</td>
                                        <td>几道检验</td>
                                    </tr>
                                @if($requirePros)
                                    @foreach($requirePros as $requirePro)
                                    <tr style="margin:10px;">
                                        <td>{{$requirePro['key']}}</td>
                                        <td>{{$requirePro['val']}}</td>
                                    </tr>
                                    @endforeach
                                @endif
                                </table>
                            </div>
                        </td>
                    </tr>
                    {{--产量产能--质量部门--}}
                    <tr>
                        <td colspan="2">
                            <b>质量部门：</b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" width="600">
                            <div style="max-height:400px;overflow:auto;">
                                <table class="am-table am-table-striped
                                    am-table-hover table-main"
                                       style="background:#dddddd;"
                                    >
                                    <tr>
                                        <td>部门</td>
                                        <td>人数</td>
                                    </tr>
                                @if($requireDeparts)
                                    @foreach($requireDeparts as $requireDepart)
                                    <tr style="margin:10px;">
                                        <td>{{$requireDepart['key']}}</td>
                                        <td>{{$requireDepart['num']}}</td>
                                    </tr>
                                    @endforeach
                                @endif
                                </table>
                            </div>
                        </td>
                    </tr>
                    {{--产量产能--质量标准--}}
                    <tr>
                        <td colspan="2">
                            <b>质量标准：</b>
                        </td>
                    </tr>
                    <tr>
                        <td width="600">
                            @if($standards[0])
                                《工艺单》、样品
                            @endif
                            @if($standards[1])
                                摊平用尺量用目视用手摸
                            @endif
                            @if($standards[2])
                                质检：每件产品全检
                            @endif
                            @if($standards[3])
                                总检：抽查品质、尺寸
                            @endif
                            @if($standards[4])
                                巡检：对在线生产产品巡查
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--工厂环境--}}
                    <tr>
                        <td colspan="2" id="facEnv">
                            <h2>工厂环境：【工厂专用】</h2>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            总经理：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(1)">新增</a>
                        </td>
                        <td width="500">
                            @if(isset($facEnvs['managers']) && $facEnvs['managers'])
                            @foreach($facEnvs['managers'] as $manager)
                                @if(file_exists(ltrim($manager,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$manager}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            厂长：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(2)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['facManagers']) && $facEnvs['facManagers'])
                            @foreach($facEnvs['facManagers'] as $facManager)
                                @if(file_exists(ltrim($facManager,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$facManager}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            财务室：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(3)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['finances']) && $facEnvs['finances'])
                            @foreach($facEnvs['finances'] as $finance)
                                @if(file_exists(ltrim($finance,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$finance}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            门卫：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(4)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['guards']) && $facEnvs['guards'])
                            @foreach($facEnvs['guards'] as $guard)
                                @if(file_exists(ltrim($guard,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$guard}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            厂房外形图：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(5)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['shapes']) && $facEnvs['shapes'])
                            @foreach($facEnvs['shapes'] as $shape)
                                @if(file_exists(ltrim($shape,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$shape}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            充绒房：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(6)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['raws']) && $facEnvs['raws'])
                            @foreach($facEnvs['raws'] as $raw)
                                @if(file_exists(ltrim($raw,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$raw}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            技术部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(7)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['techs']) && $facEnvs['techs'])
                            @foreach($facEnvs['techs'] as $tech)
                                @if(file_exists(ltrim($tech,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$tech}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            缝制车间：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(8)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['works']) && $facEnvs['works'])
                            @foreach($facEnvs['works'] as $work)
                                @if(file_exists(ltrim($work,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$work}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            后道车间：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(9)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['backss']) && $facEnvs['backss'])
                            @foreach($facEnvs['backss'] as $backs)
                                @if(file_exists(ltrim($backs,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$backs}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            裁剪车间：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(10)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['cuts']) && $facEnvs['cuts'])
                            @foreach($facEnvs['cuts'] as $cut)
                                @if(file_exists(ltrim($cut,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$cut}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            工厂宿舍：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(11)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['dorms']) && $facEnvs['dorms'])
                            @foreach($facEnvs['dorms'] as $dorm)
                                @if(file_exists(ltrim($dorm,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$dorm}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            样衣间：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyFacEnv(12)">新增</a>
                        </td>
                        <td>
                            @if(isset($facEnvs['samples']) && $facEnvs['samples'])
                            @foreach($facEnvs['samples'] as $sample)
                                @if(file_exists(ltrim($sample,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$sample}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    {{--公司环境--}}
                    <tr>
                        <td colspan="2" id="comEnv">
                            <h2>公司环境：【公司专用】</h2>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            总经理：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(1)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['managers']) && $comEnvs['managers'])
                            @foreach($comEnvs['managers'] as $manager)
                                @if(file_exists(ltrim($manager,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$manager}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            副总经理：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(2)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['manager2s']) && $comEnvs['manager2s'])
                            @foreach($comEnvs['manager2s'] as $manager2)
                                @if(file_exists(ltrim($manager2,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$manager2}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            总监：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(2)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['directors']) && $comEnvs['directors'])
                            @foreach($comEnvs['directors'] as $director)
                                @if(file_exists(ltrim($director,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$director}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            总经办：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(3)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['handles']) && $comEnvs['handles'])
                            @foreach($comEnvs['handles'] as $handle)
                                @if(file_exists(ltrim($handle,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$handle}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            财务室：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(4)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['finances']) && $comEnvs['finances'])
                            @foreach($comEnvs['finances'] as $finance)
                                @if(file_exists(ltrim($finance,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$finance}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            行政部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(5)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['officers']) && $comEnvs['officers'])
                            @foreach($comEnvs['officers'] as $officer)
                                @if(file_exists(ltrim($officer,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$officer}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            销售部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(6)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['sales']) && $comEnvs['sales'])
                            @foreach($comEnvs['sales'] as $sale)
                                @if(file_exists(ltrim($sale,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$sale}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            拓展部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(7)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['expands']) && $comEnvs['expands'])
                            @foreach($comEnvs['expands'] as $expand)
                                @if(file_exists(ltrim($expand,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$expand}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            设计部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(8)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['designs']) && $comEnvs['designs'])
                            @foreach($comEnvs['designs'] as $design)
                                @if(file_exists(ltrim($design,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$design}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            采购部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(9)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['buyers']) && $comEnvs['buyers'])
                            @foreach($comEnvs['buyers'] as $buyer)
                                @if(file_exists(ltrim($buyer,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$buyer}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            电商部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(10)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['sellers']) && $comEnvs['sellers'])
                            @foreach($comEnvs['sellers'] as $seller)
                                @if(file_exists(ltrim($seller,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$seller}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            生产部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(11)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['produces']) && $comEnvs['produces'])
                            @foreach($comEnvs['produces'] as $produce)
                                @if(file_exists(ltrim($produce,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$produce}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            品控部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(12)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['qcs']) && $comEnvs['qcs'])
                            @foreach($comEnvs['qcs'] as $qc)
                                @if(file_exists(ltrim($qc,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$qc}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            仓储部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(13)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['storages']) && $comEnvs['storages'])
                            @foreach($comEnvs['storages'] as $storageUrl)
                                @if(file_exists(ltrim($storageUrl,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$storageUrl}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            物流部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(14)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['transports']) && $comEnvs['transports'])
                            @foreach($comEnvs['transports'] as $transport)
                                @if(file_exists(ltrim($transport,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$transport}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            外发部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(15)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['outs']) && $comEnvs['outs'])
                            @foreach($comEnvs['outs'] as $out)
                                @if(file_exists(ltrim($out,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$out}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            会议室：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(16)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['meetings']) && $comEnvs['meetings'])
                            @foreach($comEnvs['meetings'] as $meeting)
                                @if(file_exists(ltrim($meeting,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$meeting}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            展厅：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(17)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['halls']) && $comEnvs['halls'])
                            @foreach($comEnvs['halls'] as $hall)
                                @if(file_exists(ltrim($hall,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$hall}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            仓储部：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(18)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['stages']) && $comEnvs['stages'])
                            @foreach($comEnvs['stages'] as $stage)
                                @if(file_exists(ltrim($stage,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$stage}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            谈判室：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(19)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['talks']) && $comEnvs['talks'])
                            @foreach($comEnvs['talks'] as $talk)
                                @if(file_exists(ltrim($talk,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$talk}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            厨房：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(20)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['cooks']) && $comEnvs['cooks'])
                            @foreach($comEnvs['cooks'] as $cook)
                                @if(file_exists(ltrim($cook,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$cook}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            厕所：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(21)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['wcs']) && $comEnvs['wcs'])
                            @foreach($comEnvs['wcs'] as $wc)
                                @if(file_exists(ltrim($wc,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$wc}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            茶水间：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(22)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['teas']) && $comEnvs['teas'])
                            @foreach($comEnvs['teas'] as $tea)
                                @if(file_exists(ltrim($tea,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$tea}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td>
                            宿舍：
                            <br>
                            <a href="javascript:;"
                               onclick="modifyComEnv(23)">新增</a>
                        </td>
                        <td>
                            @if(isset($comEnvs['dorms']) && $comEnvs['dorms'])
                            @foreach($comEnvs['dorms'] as $dorm)
                                @if(file_exists(ltrim($dorm,'/')))
                                    <div style="margin:5px;float:left;">
                                        <img src="{{$dorm}}" height="100">
                                    </div>
                                @endif
                            @endforeach
                            @endif
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><hr></td>
                    </tr>
                    </tbody>
                </table>
                <button type="button" class="am-btn am-btn-primary"
                        onclick="history.go(-1);">返回</button>
                <br><br><br><br><br><br><br><br><br>
            </div>
        </div>
    </div>
    <input type="hidden" id="uid" value="{{$uid}}">
    <input type="hidden" id="cate" value="{{$cate}}">
    <input type="hidden" id="_token" value="{{csrf_token()}}">

    @include('admin.member.company.optionPop')
    @include('admin.member.company.optionJs')
@stop